package com.zls.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.stereotype.Component;

import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Component
//产品批次功能
public class ProductBatches {
    @TableId(value = "ID",type = IdType.AUTO)
    private int id;//主键id
    private String productName;//作物名称
    private char isactive;//是否启用
    private String productBatch;//产品批次
    private int area;//面积
    private Date recoverydate;//采收时间
    private String img;//产品图片
    private String feature;//产品特点
    private int sysUserId;//用户id
    private int farmId;//基地id
    //一对一
    @TableField(exist = false)
    private TFarm tFarm;

}
